package com.yue.mapstruct;

import com.yue.mapstruct.dto.CarDto;
import com.yue.mapstruct.po.Car;
import com.yue.mapstruct.po.mapper.CarMapper;

/**
 * Created by qiuyang on 14/04/2017.
 */
public class Main {
    public static void main(String[] args) {
        Car car = new Car();
        car.setBrand("BXM");
        car.setMake("China");
        car.setNumberOfSeats(4);
        CarDto dto = CarMapper.INSTANCE.carToCarDto(car);
        System.out.println(dto);
    }
}
